﻿using Commons.DomainBase;
using Kogel.Dapper.Extension.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace FileService.Domain.Entities
{
    [Display(Rename = "show_tab")]
    public class ShowTab: IParentId
    {
        [Identity]
        [Display(Rename = "id")]
        public long Id { set; get; }

        public string Name { set; get; }

        public long ParentId { set; get; }

        public int Type { set; get; }

        public static ShowTab Create(string name, long timeId,int type)
        {

            ShowTab item = new()
            {
                Name = name,
                ParentId = timeId,
                Type = type
            };
            return item;
        }

        public ShowTab Change(string name,int type)
        {
            this.Name = name;
            this.Type = type;
            return this;
        }
    }
}
